<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <p>我是黄老师</p>
    <!-- <input type="text" value="王老师">
    <br> -->
    <!-- <input type="button" value="提交"> -->
     <input type="checkbox">复选框
    <script>
        const ipt=document.querySelector('input')
        const p=document.querySelector('p')
        // const btn=document.querySelector('input')
        // console.log(ipt.value)  //获取属性值
        console.log(p.innerHTML)  //获取属性值
        // console.log(btn.disabled)
        // btn.disabled='true'
        console.log(ipt.checked);
        ipt.checked='true'
    </script>
</body>

</html>